import { get, post, put, del } from "../utils/request"

// 用户管理 - 列表
export const loadUserList = (params: any): Promise<any> => post(`/pay/user/pageList`, params);

// 用户管理 - 编辑
export const updateUser = (params: any): Promise<any> => post(`/pay/user/update`, params);

//根据应用获得商家
export const getMerchantList = (params: any): Promise<any> => post(`/cdwl-merchant/inner/merchantinfo/queryMerchantsByAppcode`, params);

// 用户管理 - 新增 -- 邑支付
export const addUser = (params: any): Promise<any> => post(`/pay/user/addDayiUser`, params);

//用户支付密码列表
export const userPasswordList = (params: any): Promise<any> => post(`/pay/payPwd/list`, params);


//用户支付密码重置
export const userPasswordReset = (id: any): Promise<any> => post(`/pay/payPwd/reset/${id}`);

// 用户标签列表
export const userTagList = (params: any): Promise<any> => post(`/cdwl-merchant/inner/userTags/list`, params);

// 用户标签新增
export const addUserTagList = (params: any): Promise<any> => post(`/cdwl-merchant/inner/userTags/save`, params);

// 用户标签编辑
export const editUserTagList = (params: any): Promise<any> => post(`/cdwl-merchant/inner/userTags/update`, params);

// 用户标签删除
export const delUserTagList = (params: any): Promise<any> => post(`/cdwl-merchant/inner/userTags/delete`, params);
